package com.lx.lib.fragment;

import android.os.Bundle;
import android.view.View;

import com.lx.commonlib.listener.CustomOnClickListener;
import com.lx.commonlib.mvp.persenter.BasePresenter;
import com.lx.commonlib.mvp.view.fragment.ToolbarFragment;
import com.lx.commonlib.utils.LogUtil;
import com.lx.lib.R;

/**
 * 类说明：测试重复点击
 * Created by liuxiong on 2020/1/14.
 */
public class SingleClickFragment extends ToolbarFragment {

    @Override
    protected int getContentLayoutId() {
        return R.layout.fragment_singleclick;
    }

    @Override
    protected BasePresenter createPresenter() {
        return null;
    }


    @Override
    protected void onCreateFragment(Bundle savedInstanceState) {
        super.onCreateFragment(savedInstanceState);

        setTitle("SingleClick");

        setRightText("注册");

        findViewById(R.id.tv01).setOnClickListener(new CustomOnClickListener() {
            @Override
            public void onEffectiveClick(View view) {
                LogUtil.d("----点击了……");
            }
        });
    }
}
